Same Origin policy is a feature adopted for security purposes. According to this policy, a web browser allows scripts from one webpage to access the contents of another webpage provided both the pages have the same origin. The origin refers to a combination of the URL scheme, hostname, and port number.
The same Origin Policy prevents a malicious script on one page to access sensitive data on another webpage.
Consider a JavaScript program used by google.com. This test application can access all Google domain pages like google.com/login, google.com/mail, etc. However, it cannot access pages from other domains like yahoo.com
Selenium RC was introduced to address this. The server acts as a client configured HTTP proxy and "tricks" the browser into believing that Selenium Core and the web application being tested come from the same origin.
Posted Date:- 2021-09-11 05:27:59
Can WebDriver test mobile applications?
What is the difference between Assert and Verify in Selenium?
What are the different types of waits available in WebDriver?
What is the difference between setSpeed() and sleep() methods?
What is Selenese, and what are the three types of Selenese?
Which WebDriver implementation claims to be the fastest?
What are the different types of frameworks?
How to scroll down a page using JavaScript?
What is the syntax of finding elements by id using CSS Selector?
What is the syntax of finding elements by class using CSS Selector?
How many test cases you have automated per day?
What makes Selenium such a widely used testing tool? Give reasons.
What is the major difference between driver.close() and driver.quit()?
Mention the types of navigation commands
While using click command can you use screen coordinate?
What is the same-origin policy and how is it handled?
What is the difference between type keys and type commands ?
How can we inspect the web element attributes in order to use them in different locators?
Can we test APIs or web services using Selenium Webdriver?
When do we use findElement() and findElements()?
How to click on a hyper link using linkText?
What are the different types of waits available in WebDriver?
What do we mean by Selenium 1 and Selenium 2?
What is Same origin policy and how it can be handled?
What is the difference between assert and verify commands?
When should I use Selenium IDE?
What is the difference between getwindowhandles() and getwindowhandle()?
How will you use Selenium to upload a file?
What are data-driven framework and keyword-driven framework?
What is Same-origin Policy? How can we avoid it?
What are the four elements that you have to pass in Selenium?
Why do testers choose Selenium over QTP?
What is POM (Page Object Model)? What are its advantages?
What is an exception test in Selenium?
What are the significant changes/upgrades made to various Selenium versions?
What is the difference between type keys and type commands?
Why should you use Selenium for test automation?
Explain the difference between single slash and double slash in XPath.
Why should Selenium be selected as a test tool?
List out the technical challenges with Selenium?
What are the different forms of Selenium?
Explain the difference between single and double slash in X-path?
Mention what is the use of X-path?
Explain what is assertion in Selenium and what are the types of assertion?